package com.tedu.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.tedu.service.UserService;
import com.tedu.util.UserResult;

@Controller
public class UpdateController {
	@Resource
	private UserService service;
	@RequestMapping("update.do")
	@ResponseBody
	public UserResult  execute(String Id,String password ,String phon){
		
		UserResult result=service.updateUserImp(Id,password,phon);
		return result;
	}

}
